<template>
  <div class="right">
    <div class="goods" v-for="(item, index) in list" :key="index">
      <div class="img">
        <img :src="item.picture" alt="" />
      </div>
      <div class="neirong">
        <div class="name">{{ item.name }}</div>
        <div class="pingjia">{{ item.month_saled_content }}</div>
        <div class="money">
          <div class="moneynum">
            ￥<span>{{ item.month_saled }}</span>
          </div>
          <div class="jia">+</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: ["list" ,"i"]
};
</script>

<style lang="scss" scoped>
.right {
  flex: 1;
  // background-color: red;
  margin-left: 10px;
  padding: 0 10px;
  > .goods {
    width: 100%;
    height: 100px;
    //   background-color: aqua;
    display: flex;
    margin-top: 10px;
    > .img {
      width: 100px;
      height: 100px;
      // background-color: yellow;
      > img {
        width: 100%;
        height: 100%;
      }
    }
    > .neirong {
      flex: 1;
      width: 100%;
      height: 100%;
      // background-color: violet;
      > .name {
        width: 100%;
        height: 30px;
        //   background-color: teal;
        font-size: 24px;
        line-height: 30px;
        font-weight: 700;
      }
      > .pingjia {
        width: 100%;
        height: 30px;
        font-size: 10px;
        color: gray;
      }
      > .money {
        width: 100%;
        height: 40px;
        //   background-color: red;
        display: flex;
        justify-content: space-between;
        align-items: center;
        > .moneynum {
          color: red;
          font-weight: 700;
          > span {
            font-size: 20px;
          }
        }
        > .jia {
          width: 20px;
          height: 20px;
          background-color: #06a5ff;
          text-align: center;
          line-height: 19px;
          border-radius: 50%;
          color: white;
        }
      }
    }
  }
}
</style>